import request from '@/utils/request'

// 查询题目标签列表
export function listProblemtag(query) {
  return request({
    url: '/problemtag/problemtag/list',
    method: 'get',
    params: query
  })
}

// 查询题目标签详细
export function getProblemtag(id) {
  return request({
    url: '/problemtag/problemtag/' + id,
    method: 'get'
  })
}

// 新增题目标签
export function addProblemtag(data) {
  return request({
    url: '/problemtag/problemtag',
    method: 'post',
    data: data
  })
}

// 修改题目标签
export function updateProblemtag(data) {
  return request({
    url: '/problemtag/problemtag',
    method: 'put',
    data: data
  })
}

// 删除题目标签
export function delProblemtag(id) {
  return request({
    url: '/problemtag/problemtag/' + id,
    method: 'delete'
  })
}
